﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Library.WebControls.SimplePaging {
	internal class RowPaging : TableRow {
		//private readonly ReadOnlyControlCollection _childs;
		private LeftCellPaging _left;
		private CenterCellPaging _center;
		private RightCellPaging _right;
		public RowPaging() {
			Initilize();
			//_childs = new ReadOnlyControlCollection(this, new Control[] { _left, _center, _right });

		}
		//public override ControlCollection Controls {
		//get { return _childs; }
		//}
		//[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
		//[Browsable(false)]
		//public override TableCellCollection Cells {
		//get {
		///	return base.Cells;
		//}
		//}
		private void Initilize() {
			_left = new LeftCellPaging();
			_center = new CenterCellPaging();
			_right = new RightCellPaging();
			Cells.Add((_left));
			Cells.Add((_center));
			Cells.Add((_right));
		}

		internal virtual LeftCellPaging LeftCellPaging {
			get { return _left; }
		}

		internal virtual RightCellPaging RightCellPaging {
			get { return _right; }
		}

		internal virtual CenterCellPaging CenterCellPaging {
			get { return _center; }
		}
	}
}
